package com.vanguard;

import com.vanguard.service.MergeService;

import java.util.Map;

public class Main {

    public static void main(String[] args) {
        MergeService mergeService = new MergeService();
        //读取清算平台对账文件
        Map<String, String> transData = mergeService.readTransFile();
        //读取清算平台对账单
        Map<String, String> shopData = mergeService.readShopFile();
        //合并数据并生成文件
        String filePath = mergeService.merge(transData, shopData);
        //指定时间上传文件到sftp服务器
        mergeService.autoUploadSftp(filePath);
    }
}
